package com.arcadefoundry.rest.http.events
{
	import flash.events.Event;
	
	/**
	 * Temporary class used for debugging with the test app.
	 * 
	 */
	public class HTTPSocketEvent extends Event
	{
		public static const DATA_RECEIVED:String = "dataReceived";
		
		private var _data:String;
		public function get data():String
		{
			return _data
		}
		
		public function HTTPSocketEvent(type:String, data:String)
		{
			super(type);
			this._data = data;
		}
		
		override public function clone():Event
		{
			return new HTTPSocketEvent(type, data);
		}
		
		override public function toString():String
		{
			return formatToString("HTTPSocketEvent", "type", "bubbles", "cancelable",
				"eventPhase");
		}
	}
}